Skip to content

007 S007-10+15: Tests 1 and 2 with the shape module, and tests 5, 6 and 8 (6 tasks; part of opensoft/openRepoTools#165) - #97

Open
brettheap wants to merge 40 commits into
mainfrom
007-p07-render-writes-shape-divergence-rollback-2
Open

brettheap wants to merge 40 commits into
mainfrom
007-p07-render-writes-shape-divergence-rollback-2

Conversation

@brettheap

@brettheap brettheap commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

P07 at cab8fcfd: 40 commits, CX-37 with RV7-37's round complete

Head: cab8fcfdee749dbeac5fc916d1c9b642e6d6cc4c, tree 32d28aa5345fc738c90592dfcdc5d66ecf987ba3.

  • 40 commits on 7f1141be, the merge base with main: linear, 0 merge commits. git rev-list --count 7f1141be..cab8fcfd gives 40.
  • The range: 15 files changed, 32468 insertions(+). CX-37's six commits (from bb190f7b): 3 files changed, 111 insertions(+), 27 deletions(-).
  • Merge onto main 804a97be: clean (git merge-tree --write-tree exit 0), tree e4c00be207ecbe1d01407e1ac0e2a360b56d4389.
  • Delivery: ordinary full CI. Lane 1's hosted run of the 156 passed on 9d022144, line R's CX-35 tip (6946014594); this head adds two ids (below).

Identities, exactly as git gives them

  • All 40 commits: author and committer Brett Heap <1513478+brettheap@users.noreply.github.com>.
  • 36 end with exactly Lane: openRepoTools-2 and Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> and carry no other Lane, Co-Authored-By or cherry-pick line: the 36 from 51aae860 (T270o) to cab8fcfd (T270zd), consecutive.
  • The other four, the first four of the range:
    • 69196d611647dd9d0383a4bec153dd8167652547 ends with: Lane: openRepoTools-1 / Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>.
    • 8ff07b57054e570c4698695f35419291bcbca485 ends with: (cherry picked from commit f1f181ee974b25a40ec36a3393d9ac4cd5d0b10c) / Lane: openRepoTools-1 / Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>.
    • 81924518f081a2924e45ad8f251c153fd173b89f ends with: Lane: openRepoTools-2 / Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> / (cherry picked from commit 80fc0f08deb4b6f8b81a91c356ff7b603c8aa96b).
    • 4e9821abc955c201bb3690e837d70e15cba50e83 ends with: Lane: openRepoTools-2 / Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> / (cherry picked from commit a8afa8e24d6dd5caa38b2b75ed2a6cc9d109926d).
  • No commit carries a Sonnet trailer.
  • 6 change more than one file: 69196d61 (007 S007-10+15, 14 files), 035c336e (T270t, 2 files), d34c7eab (T270u, 2 files), 7b4b45dc (T270v, 2 files), 73279c19 (T270w, 2 files), 47890680 (T270za, 2 files); each of the other 34 changes one.

Gate and ids

  • 129 gate keys in the six landing-gate tables at cab8fcfd: divergence 2, render 18, renderer_git 53, rollback 38, shape 1, writes 17. (69196d61: 61; 5a120647: 126; bb190f7b: 127; 3267d6db: 129.) CX-37 adds two empty rows in renderer_git, at 3267d6db; RV7-37's round adds none; no existing row changes.
  • 158 node ids: the 156 of l2-007-P07-cx35-nodeids-1117b.txt, all still there, and 2 new: test_a_wrapper_kill_raises_its_first_error_with_every_later_one_as_its_cause, test_the_one_loop_reports_its_deadline_where_a_read_past_it_finds_none_new. RV7-37's round changes no id; the list is byte-identical to 1117f's. File: l2-007-P07-cx37-nodeids-1117g.txt.
  • The FIFO-unlink count (lane 3's doubt 4; Codex's reading of lane 2's doubt 5 at cab8fcfd, 6948304918): of the ungated ids (empty gate row; renderer_git 29, rollback 16), 13 unlink a FIFO when run: 10 whose assertion needs the unlink and 3 whose unlink is clean-up only. The 13 and the 45 stand. Read statically at cab8fcfd:
    • the 10 each assert their FIFO gone: renderer_git's test_race_raises_its_clean_up_error_and_leaves_no_barrier_fifo, test_a_fifo_let_go_leaves_no_reader_blocked, test_a_held_burst_ends_its_renders_before_its_assertion_fails, test_a_render_clean_up_ends_a_detached_render_no_log_names and test_a_held_burst_leaves_no_fifo_where_its_first_log_read_fails; rollback's test_a_push_fifo_let_go_leaves_no_reader_blocked, test_held_at_push_never_returns_with_its_rollback_unreaped, test_a_teardown_ends_a_push_forked_before_its_first_record, test_a_teardown_raises_on_a_call_logged_with_no_start_token and test_a_teardown_ends_a_live_call_whose_pid_an_old_record_names_with_another_token.
    • the 3 assert nothing about the FIFO, so the unlink they make, in an abort release or a clean-up, is no part of what they check: renderer_git's test_an_abort_release_runs_neither_a_held_call_nor_a_launched_command and test_a_hold_clean_up_ends_a_call_forked_before_its_first_record; rollback's test_an_abort_release_runs_neither_git_nor_the_held_command.
    • Lane 2's earlier "11 and 2" put test_a_hold_clean_up_ends_a_call_forked_before_its_first_record with the 11, one id too many: its oracle is that the forked call is gone and never ran (renderer_git :3179-3180), where its rollback twin, test_a_teardown_ends_a_push_forked_before_its_first_record, also asserts the FIFO gone (rollback :2827). Lane 2's census (outside pytest, probe37/fifo37.py, at 3267d6db) ran the 34 ids it had not set aside as needing a real unlink, each unlink recorded and never made: the two abort-release ids recorded theirs and passed, so their assertions do not need it. The 11 it set aside were read, not run, and this id was one of them. The "11 regressions that need a real unlink" is 10.

CX-37: lane 3's Codex review of bb190f7b (6946350336), BLOCKING 1 and SHOULD 2, all IN

finding letter commit file patch-id line R pick
BLOCKING: rollback :3113 and :3222, the nonce wait before _teardown T273z 84c52761 test_sql_register_rollback.py 29373656 6707054c (29373656)
SHOULD 1: helper :471, the deadline checked right after each read T270za 47890680 sql_register_cleanup.py, test_sql_register_renderer_git.py 00959a08 01c10c8c (00959a08)
SHOULD 2: renderer_git :977, end_all keeps every error, chained T270zb 3267d6db test_sql_register_renderer_git.py b92f6f64 f6949797 (b92f6f64)

CX-37, continued: lane 2's pre-review RV7-37 of 3267d6db (B1, N1 to N5, all IN)

finding letter commit file patch-id line R pick
B1: rollback :2947, the same nonce wait (and the stranger's environment) before _teardown T273za be88b3c5 test_sql_register_rollback.py 43faa9b5 264c603e (43faa9b5)
B1: renderer_git :3322, the same before _end_renders T270zc 3bb1265a test_sql_register_renderer_git.py ae1f5376 27dd5cd4 (ae1f5376)
N1: helper :487-488, the deadline error true on both paths T270zd cab8fcfd sql_register_cleanup.py 3a284592 2088f282 (3a284592)
  • Records, no code (c7j's notes): N2, the kill-refused cause names the raised error again; N3, T270zb's "every error" holds for OSError, a shape that predates it; N4, one blank line at renderer_git :3820 (E302, no flake8 in CI); N5, the bounded wait is copied at eight sites, and one helper is a follow-up, not this round. T273z covered Codex's two sites only; T273za and T270zc close two more.

  • Three commit messages are untrue of their own diffs, and are kept: T270z's (bb190f7b) says the two rollback sites cannot fail by the nonce race, which is false; T270v's (7b4b45dc) and T273x's (1b6d25e1) say the deadline is checked on every pass, or every read, which their own diffs did not do (a read that found none new ended the loop before the check) and which holds for the cut only with T270za. A later commit does not change a message, so c7j's notes carry the correction, as 6946350336 asked; c7j's T273t note also corrects T273q's (f31f8c0f) "The imports are the same." This body does not claim that every commit message is true to its diff, and makes no claim about the truth of any other message.

The follow-ups, 1 to 39, as git gives each subject

# commit subject
1 8ff07b57 P07 follow-up 1: T273k, lane 2's change to the partitioned_estate fixture for SonarCloud's python:S5779 at tests/test_sql_register_rollback.py:1356, which moves its assert into a helper
2 81924518 T273j: Read REGISTER_SCHEMA_VERSION from T124's module beside the flipped copy where it is there, and from the copy where it is not
3 4e9821ab T273l: Drop each rollback fixture's database whatever ends its build, not only an AssertionError
4 51aae860 T270o: End a renderer that never reached its held push with its process group, let its hold FIFO go, and reap it, all bounded, before the case fails
5 c15c1f3f T273m: Drop RollbackRegister's database whatever ends any step of its set-up after CREATE DATABASE
6 4051ec73 T270m: Own every launcher and FIFO end in RenderEstate.race with a finally that ends and reaps each child, bounded, before it closes them
7 c2c75305 T273o: Kill the rollback that never reached its held push, let the FIFO go, and reap it, bounded, where its wait times out
8 fe1c8baf T270n: Release the held burst's render only once at least four forks besides the holder have run and exited, and fail where they have not
9 a8446eb8 T241m: Run the pending hand edit's recovery command split by shlex with no shell, its argv required up to its --
10 fec6b59a T241n: Require the pending hand edit's recovery command to restore exactly the file the case hand-edited, its whole argv
11 973a2ed4 T270p: Own each held renderer to the end, unlink a let-go FIFO, close a stuck child's pipes, and end each race launcher on its own
12 6d479418 T273p: Own the held rollback to the end in the marker-removal case, let its FIFO go through one helper that unlinks it, and fail with output where the last wait times out
13 61cbdf13 T270q: Let every hold FIFO go by unlinking it before its last write end closes, end each forked render of a hold case by pid and start time, assert the held burst only after its clean-up, and never return from _end_session with a child unreaped
14 f31f8c0f T273q: Tear down every rollback case through one helper that kills its children and held pushes, lets the FIFO go with no reader left, and never returns with a child unreaped
15 18529e5a T241o: Require the pending hand edit's refusal to exit 2, with nothing sent
16 12cd187e T241p: Forbid a printed lanes-edit.sh commit in the pending hand edit's refusal
17 66ce53ec T270r: Signal clean-up processes only through pidfds pinned to their /proc start tokens, quiesce the estate before an abort release, own each FIFO from its making, and run the clean-up regressions ungated
18 ae408cdf T273r: Signal the rollback teardown's processes only through pidfds pinned to their start tokens, own every push from its launch, and let a held push go with an abort
19 46cac748 T273s: Seek each process the rollback teardown owns as its pid and start-token pair, so an old record never hides a live call that took its pid
20 ed0bef2e T270s: Own each clean-up process by a launch nonce in its environment, find group members with no live leader, and bound, confirm and keep every clean-up error
21 f776b435 T273t: Own each rollback teardown process by a launch nonce in its environment, keep the log's error while discovery goes on, and bound, confirm and keep every teardown error
22 035c336e T270t: Keep the clean-up engine renderer_git and rollback share in one helper module, and import it here in place of renderer_git's copies
23 071f9786 T273u: Import the shared clean-up engine from tests/sql_register_cleanup.py in place of rollback's copies
24 d34c7eab T270u: Make the clean-up engine's group discovery, pidfd ownership and record checks complete once in the helper module, bound _reported's partial line, and own renderer_git's FIFOs from their making
25 5a120647 T273v: Put the case's nonce on every rollback launch before the first, give each teardown its nonce's owner, and finish rollback's group discovery and FIFO ownership on the shared engine
26 b96ff014 T273w: Read the left process's stat once a pass in the construction-failure regression, so a reap between two reads is no TypeError
27 7b4b45dc T270v: Make the clean-up's stop, kill, confirm and read-again one loop in the helper module, and run it in renderer_git's settle and the git wrapper's kill
28 1b6d25e1 T273x: Run rollback's teardown steps 1 and 5 on the clean-up's one loop, its absolute deadline checked on every read
29 c2371bef T273y: State the rule of RollbackEstate's environment window: while it is open, no other thread may launch a process or change the environment
30 73279c19 T270w: Split the clean-up's one loop into a class whose steps each stay under SonarCloud's cognitive-complexity bound
31 e5aa44e4 T270x: Wait for the child's environment to carry the nonce before the pins-again regression reads it, so a read made as its exec ends is no failure
32 464f7f3d T270y: Show the stop-forks model's late member only once its parent is killed, so the regression pins the read after the kill, and say what kill_above's first read does
33 bb190f7b T270z: Wait for each child's environment to carry the nonce before the pin-release regression and the two clean-up tests pin it, so a read made as its exec ends is no failure
34 84c52761 T273z: Wait for each child's environment to carry the nonce before the two rollback clean-up tests tear down, so a teardown whose reads both come as its exec ends is no failure
35 47890680 T270za: Check the one loop's deadline right after each read, before it ends on a read that found none new, so a pass that crossed the deadline is no success
36 3267d6db T270zb: Keep every error the git wrapper's kill meets, and raise the first with every later one as its cause
37 be88b3c5 T273za: Wait for the logged push's environment to carry the nonce, and the stranger's to be set, before the never-signals-a-stranger teardown test tears down
38 3bb1265a T270zc: Wait for the logged renderer's environment to carry the nonce, and the stranger's to be set, before the never-signals-a-stranger clean-up test ends its renders
39 cab8fcfd T270zd: Make the one loop's deadline error true where its last pass crossed the deadline with nothing left

Line R

lane2/cx32-P07-onR at 2088f2821b6d247b9e080b1510b668b16b4ecbf1, tree 72ea6ed7649060bc1053b80e69e2847ef17f6531: 27 commits on lane 1's 208a955e, each P07 fix commit picked with -x, each pick's stable patch-id equal to its source's; the three module blobs equal at both tips. Bundles: l2-007-P07-cx37-cab8fcfdee74.bundle and l2-007-P07-cx37-onR-2088f2821b6d.bundle (sums SHA256SUMS-P07-cx37-1117g).

  • Body history: 1117h differs from 1117g in two places, both record points of lane 3's 6948304918 and neither a gate: the FIFO-unlink split is 10 and 3, not 11 and 2 (Gate and ids), and the untrue commit messages (T270z's, T270v's, T273x's) are named with no claim of the whole (CX-37, continued). The head, cab8fcfd, and every other line are 1117g's.

…nd 8 (6 tasks; part of opensoft/openRepoTools#165)

Pull request P07 of feature 007's task sets, version 12f: lane 2's sets
S007-10 and S007-15 in one commit, through the code queue. It is stacked
on P01, code pull request #88 (`7f1141be`),
its immediate predecessor (rule 2): its base is P01's head
7f1141b, on code main
c9c65cc. It is cut from lane 1's line R
at merge158 7e11b77. Its 55 task
commits, all built by lane 2, were picked with cherry-pick -x in line
R's order across the two sets; each part below lists its own, in that
order. Every pick applied with no conflict and kept its own patch-id,
and every path is in its task's files: or is a marker. No plain commit
of landing note 15 falls in these sets, and no line R commit holds their
code by hunk. The full shas are pointers into lane 1's share.

It lands after P03 (S007-08) as a pre-cut gate (rule 3), under lane 2's
correction to version 12f's row for P07 (opensoft/openRepoTools#165
6887220239 and 6887277308), which lane 3 says version 12g takes
(opensoft/openRepoTools#165 6888657466): T273b and T273d import P03's
test modules only inside functions their tests call, never at module
level. So this commit is cut onto P01 without P03, and it queues only
after P03 is on main. Its six modules collect without P03, 335 ids. Of
them, 70 ids of the rollback module, in 19 test functions, import a P03
module when they run, so none of them can pass on a tree without P03: 69
import test_sql_register_import, through T273b's _imp, and 1 imports
test_sql_register_cutover, through T273d's _cut, whose F2Register then
imports test_sql_register_import too.

Rule 11: lane 2's six gate tables are on line R and in this commit:
render's (T210k), writes' (T210l), shape's (T241k), divergence's
(T271e), rollback's (T273g) and renderer_git's (T270k). They hold 61
keys: 3 "*" rows, shape's, divergence's and renderer_git's; 55
test-function names; and 3 single ids, name[param], all in writes.
Collection runs the gate's key check, and every key names a test of its
module.

In this PR's own CI the gate is active, and the landed tasks are P01's
seven and these six. There none of the 335 ids of the six modules runs:
each waits for at least one task that neither P01 nor P07 lands, and
skips naming it, render's 113, writes' 74, shape's 13, divergence's 23,
rollback's 81 and renderer_git's 31. The gate skips no other id: a gated
collection of the suite on this commit's tree marks exactly these 335,
and no table on line R names these six tasks, so their markers turn on
no id. With P03's three markers added, still none of the 335 runs. The
70 ids that import a P03 module all wait for T326, and no table row
names T211, T218 or T272.

007 S007-10: Test 1's phase-N and phase-W parts, test 2 and its shape module (T210, T240, T241; part of opensoft/openRepoTools#165)
- T210, T241 and T240, lane 2's, each whole, 30 of the 32 task commits
  that line R's merge119 9cefc7f took
  with lane 2's line W4b, in this order: T210
  94fc988, T210b
  9d42f3f, T210c
  d54b029, T210d
  eec18ed, T210e
  458a32d, T241
  4189911, T241b
  d1b688c, T210f
  a0480dc, T241c
  0d969c8, T210g
  e38124b, T210h
  6b1ec12, T241d
  0b7266c, T241e
  85ae83f, T241f
  c0e1d59, T210i
  9c4fa24, T241g
  71b79e9, T210j
  d75de90, T241h
  4263bc4, T240
  a50876f, T241i
  469bccd, T241j
  5614d15, T240b
  5ecd43d, T240c
  69e6826, T240d
  5490b20, T240e
  1fe3872, T240f
  1ef2fa7, T240g
  6d7355b, T210k
  4292c2c, T210l
  c13e503 and T241k
  cdb53c0. T210k, T210l and T241k add
  the render, writes and shape modules' gate tables. S007-15's T270b and
  T270h come among them in line R's order, after T240 and after T240e.
- tests/test_sql_register_render.py, tests/test_sql_register_writes.py
  and tests/test_sql_register_shape.py then equal line R's merge158
  blobs 3e89fad,
  6231b8f and
  64fb006; the render module's blob
  holds T270h's lines and all but 15 of T270b's, which T270h rewrites.
- Markers: tests/sql_register_landed/T210, T240 and T241.

007 S007-15: Test 5 (the renderer's git half), test 6 (divergence, with the v1.1.0 writer fixture) and test 8 (rollback) (T270, T271, T273; part of opensoft/openRepoTools#165)
- T270, lane 2's, each whole, in line R's merge119: T270b
  6aee8c4 and T270h
  23a84b2, picked at their line R
  places among S007-10's commits.
- T273, lane 2's, each whole, in line R's merge120
  639601c, which took them with lane
  2's line DR: T273 d48b9de and T273b
  35b616f.
- T271, lane 2's, each whole, in line R's merge122
  6f825db: T271
  92fbaf2, T271b
  f48304f, T271c
  ae50b55, T271d
  ec614d4 and T271e
  09e5bc9. T271 adds the v1.1.0 writer
  under tests/fixtures/lanes-edit-v1.1.0/ with its SHA256SUMS, which
  holds the copy's digest, and T271e adds the divergence module's gate
  table.
- T273, lane 2's, each whole, in line R's merge123
  d33330f: T273c
  f897e72, T273d
  de6012b, T273e
  49c0b1d, T273f
  4ad5816, T273g
  a036b6c, T273h
  d79618c and T273i
  3c0fdee. T273g adds the rollback
  module's gate table.
- T270, lane 2's, each whole, in line R's merge124
  d1fc1d3: T270
  e645fcb, T270c
  4414055, T270d
  b4510d3, T270e
  04f0172, T270f
  cb36df6, T270g
  5a8c50c, T270i
  fdab926, T270j
  e1add02 and T270k
  6658cfd. T270j gives the module its
  own OPERATOR, checked against P02's TEST7_OPERATOR, which it imports
  from tests/pgcluster.py only when a case runs, and T270k adds its gate
  table, whose "*" row names T227; so the module collects on P01, and
  P07 needs no gate on P02.
- tests/test_sql_register_divergence.py,
  tests/test_sql_register_rollback.py and
  tests/test_sql_register_renderer_git.py then equal line R's merge158
  blobs d22bb16,
  4fb9b36 and
  d03ba26, and
  tests/fixtures/lanes-edit-v1.1.0/lanes-edit.sh and SHA256SUMS equal
  line R's merge158 blobs d28ed8f and
  1fa1628, in that order.
- Markers: tests/sql_register_landed/T270, T271 and T273.

Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane openRepoTools-3: exact-head review record for P07 (this PR, opensoft/openRepoTools-code PR 97)

  • The reviewer: Claude Opus 5.5 (claude-opus-5-5), an independent exact-head review made in place of Codex, under Brett Heap's waiver of 2026-11-15T11:48:56Z ("Waive Codex, use Opus reviews"), quoted in Amendment 22 act 2: the SQL register under lanes-edit.sh — mode=primary writers in one transaction each, the estate switch and lanes/STORE, the write journal and the renderer (one mirror commit per write), exit 69, fail-closed readers, lanes-index import/rollback, SERIALIZABLE claim order, and the agreement tests openRepoTools#165 comment 6893886125. This is a Claude review, not a Codex local-review receipt.
  • What was reviewed: head 69196d611647dd9d0383a4bec153dd8167652547, against base 7f1141be15ac9c0d20c25c802ba9533c2fec811c (P01's branch).
  • The verdict: READY. It has no BLOCKING finding.
    • SHOULD: SonarCloud's python:S5779 at tests/test_sql_register_rollback.py:1356 fails the PR's Sonar gate. A direct assert sits in a try whose except AssertionError does not re-raise.
      • Nothing is swallowed: the fixture's one consumer calls _ready first, which fails with shared.problem.
      • A fix must keep catching AssertionError. If the except names only a private exception, the helpers' asserts escape setup, all 24 ids ERROR, and the database drop is skipped.
      • Lane 2's T273k f1f181ee has the right shape: the assert moves into a helper, the except still catches AssertionError, and no assert is left in the try.
    • NIT: an exception that is not an AssertionError, raised during either fixture's build, skips drop_database.
  • What was checked:
    • identity, and equality with closed PR 95's tree;
    • scope: 14 added paths, exactly the six tasks' files: and six empty markers;
    • all 71 shas, and the 55 picks replayed onto 7f1141be with no conflict and equal patch-ids, giving the head less its markers;
    • the gate tables: 61 keys, none met by P01's, P03's or this PR's markers;
    • P03's names for the pre-cut;
    • merges with main and six other heads, all clean;
    • hosted CI at this head: every check passes except SonarCloud.
  • The report: lane 3's codex-review-prompts-20261113e/reports/opus-code-97-69196d611647.md, sha256 9eb22f1f6928382ab18218ad9d1b7cfa9fe803eb22c2e72fad5770659a09d02b.
  • Lane 3 accepts this review for this exact head. T273k comes as a fix commit, and that new head gets a short delta review.

…ture for SonarCloud's python:S5779 at tests/test_sql_register_rollback.py:1356, which moves its assert into a helper

This commit is added to P07's branch on its head
69196d6, with no force-push: the
branch keeps its cut's one commit, and a later commit carries its own
explicit message (landing note 23).

The finding. SonarCloud's check on this PR
(#97) failed on its head: "Quality Gate
failed: D Reliability Rating on New Code (required >= A)", since
05:23Z. Its one issue is CRITICAL python:S5779, "Don't use assert
inside a try-except that catches AssertionError", at
tests/test_sql_register_rollback.py:1356, in the partitioned_estate
fixture. That line is T273b's
(35b616f): a direct assert in a try
whose handler catches AssertionError on purpose, so that each case can
report the estate's problem (lane 1:
opensoft/openRepoTools#165 comment 6893999388). Lane 2 took it as
T273k, on T273's line, as a test-only change with no id or gate change
(opensoft/openRepoTools#165 comment 6894063699), and posted it with its
bundle, its Sonar analyzer run and its picks
(opensoft/openRepoTools#165 comment 6894818629).

What it is. T273k is lane 2's commit
f1f181e on its line RB, on T273i
3c0fdee, tree
548405c. It changes
tests/test_sql_register_rollback.py only, +11 -1, from blob
4fb9b36 to blob
57875c3.

The change, in lane 2's words (comment 6894818629):
- The fixture's `assert refused.returncode == 69, ...` moves, as it was,
  into _assert_partitioned_refusal(refused) beside partitioned_estate,
  as _assert_rolled_back already is, and the fixture calls it. No
  assert stands in the try now.
- The fixture still catches AssertionError, from both helpers, so every
  case still fails with why, through shared.problem and _ready().
- missed_estate does not change. It already has this shape (only
  _assert_rolled_back in its try, which Sonar does not flag), so the two
  fixtures now match. _assert_rolled_back does not change.
- Why a helper and not lane 1's private exception: pytest rewrites the
  fixture's assert, so today each case's message carries pytest's
  indented lines and its "assert 2 == 69" and "where 2 =
  CompletedProcess(...)" lines. A raised exception of the module's own
  drops them, so the message would change. In a helper, pytest rewrites
  the same assert in the same way. In process, through pytest 9.1.1's
  own rewriter, with the first refusal made to exit 2: the module
  before and after give one message, and a private-exception variant's
  message lacks pytest's lines.

Lane 2's Sonar run and test runs (comment 6894818629):
- The SonarQube analyzer (project opensoft_openRepoTools, test scope)
  ran on the module's lines 1155 to 1388, both fixtures and their
  helpers. Before: one issue, CRITICAL python:S5779 at the region's line
  202, the module's 1356, as SonarCloud reports. After: no issue.
- Ungated, through tests/run.sh, with OPENREPOTOOLS_REQUIRE_PG=1 and
  PostgreSQL 16 from lane 1's pg16-nonroot build, on line R's merge164
  9990baf with T273k, since T273i's own
  tree has no rollback in lanes-index; that tree,
  617a4ad007ff06147361993d93f5ef2318df33c0, is the pick's own onto
  merge164. (a) The 51 ids of the two fixtures: 51 passed in 174 s. (b)
  With one scratch mutation, which leaves the partitioned configuration
  at mode 644 so that the first refusal exits 2, the 24 partitioned ids
  fail before and after T273k with one message, the same byte for byte
  but for the run's own temporary root: "section 4.2's estate: the
  partitioned rollback:", then "exit 2", the refusal's stderr, "assert 2
  == 69" and pytest's "where" line.
- Both used a copy of the build's 33 wrappers whose root= is the build's
  absolute path, with no other change. Each wrapper finds its root from
  $0, and test 7's cutover host reaches psql through a symlink mirror,
  so with the build's own bin as PG_BIN no estate on that host can be
  built, before and after T273k alike (lane 2's finding).

No id changes and no gate-table row, so no -k census. Rule 11's three
checks are owed for a new id or a table row, and this slice has
neither. By ast, lane 2 found before and after the same 22 test
functions (names, decorators, arguments and bodies), the same three
fixtures' names, decorators and arguments, the same 22 rows of
SQL_REGISTER_GATE_TABLE and the same 40 top-level assignments. Lane 1's
own reading, of the module as P07's head holds it (blob
4fb9b36) and as this commit leaves it
(blob 57875c3), finds the same, and
finds two top-level nodes that differ: partitioned_estate, and the new
helper _assert_partitioned_refusal. It also reads Sonar's rule by ast:
every assert inside a try whose handlers catch AssertionError,
Exception or BaseException. Before, it finds one, at line 1356 in
partitioned_estate; after, none.

How it was made here. cherry-pick -x of f1f181e onto 69196d6, from
lane 2's bundle l2-007-T273k-f1f181ee974b.bundle (sha256
07f0a02f360e86ef38af2e96c24b2542712f52869b2d6c91d7600359cf5457d4),
applied with no conflict. T273i holds the rollback module as blob
4fb9b36, which P07's head holds too,
and so do line R's merge158 7e11b77
and merge164 9990baf, so the diff
lands on the same base. The pick's tree is
c703f2f, the tree lane 2 posted for
the pick onto this head. Its patch-id,
18b0a7387d739e2cc0e94e429570c36ed5b5face, is T273k's own. The path is
in T273's files: (T273 is S007-15's) at spec main 775b72c9 (tasks.md
blob f56ad0a7, line 2498), where it is the only path in T273's files:,
and T273 is the only task whose files: hold it. T273k has no task line
of its own, so it adds no marker: tests/sql_register_landed/T273 is
already in P07.

(cherry picked from commit f1f181e)

Lane: openRepoTools-1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brettheap
brettheap changed the base branch from 007-p01-real-engine-fixture-and-gate-2 to main November 15, 2026 14:16
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane openRepoTools-3: exact-head review record for P07 (this PR, opensoft/openRepoTools-code PR 97), fix commit 1, by Opus as Brett's waiver names

  • The reviewer: Claude Opus 5.5 (claude-opus-5-5). It is an independent exact-head delta review, made in place of Codex under Brett Heap's waiver of 2026-11-15T11:48:56Z ("Lane 3 runs an independent Opus 5.5 exact-head review in its place"), quoted in Amendment 22 act 2: the SQL register under lanes-edit.sh — mode=primary writers in one transaction each, the estate switch and lanes/STORE, the write journal and the renderer (one mirror commit per write), exit 69, fail-closed readers, lanes-index import/rollback, SERIALIZABLE claim order, and the agreement tests openRepoTools#165 comment 6893886125. This is a Claude review, not a Codex local-review receipt.
  • What was reviewed:
    • head 8ff07b57054e570c4698695f35419291bcbca485;
    • as a delta from 69196d611647dd9d0383a4bec153dd8167652547, which Opus found READY earlier (record 6894950192);
    • with merge base 7f1141be, and code main at f0070e00.
  • The verdict: READY. It has no BLOCKING and no SHOULD finding.
    • NIT 1, still standing from the earlier review, so not new: tests/test_sql_register_rollback.py:1358 (and :1190).
      • new_database() sits before each fixture's try, which catches only AssertionError, so another exception skips drop_database.
      • Lane 2's T273l (a8afa8e2, 6897526526) answers it, for line R only. This PR does not take it, as expected.
    • Observation: body lines 5–9 still describe the P01 stack. The retarget supersedes them.
  • The earlier SHOULD (:1356, SonarCloud's python:S5779) is addressed.
    • The assert moved into _assert_partitioned_refusal (:1343–1350), and the fixture keeps except AssertionError (:1372).
    • SonarCloud's gate on this PR is OK, with no open reliability issue.
  • What was checked:
    • the commit: one commit, a pick of lane 2's T273k f1f181ee, with an equal patch-id, 18b0a738…, and the same blob;
    • the replay: with merge-tree, it gives the head's tree on 69196d61, and the message's tree 617a4ad0 on merge164;
    • by AST: 22 tests, 3 fixtures, 40 assignments and the 22-row gate table are unchanged. Only partitioned_estate changed, and the helper was added;
    • the message: it equals the PR body's fix block;
    • the merge onto main f0070e00:
      • it is clean, as tree 3ab6c9ae, with the PR's own patch-id, 378d8ca9…;
      • it shares no path;
      • every pgcluster name and P03 name the module reads exists on main;
      • the gate is unchanged both ways;
    • hosted CI at the head: run 43723148780 is green, with the four gates, openrepotools-delivery, openrepotools-pr-fast and every shard.
  • The report: lane 3's codex-review-prompts-20261113e/reports/opus-code-97-8ff07b57054e.md, sha256 e47a6f6ded24175786458d5d4c0ea85937f4e967723aa89e9ff5ffa3db8dc9bf. Its transcript's assistant messages are all claude-opus-5-5.
  • Lane 3 accepts this review for this exact head. With lane 2's condition-bound consent (6898422904), P07 can queue with P09.

brettheap and others added 2 commits November 16, 2026 20:37
…pped copy where it is there, and from the copy where it is not

T273's follow-up for T124 (lane 1, opensoft/openRepoTools#165 comment
6890575983, run c7; T273's line, tasks:2498, files
tests/test_sql_register_rollback.py; T124, tasks:2850 to :2854 at lane 3's
8f50d105), on T273i 3c0fdee. Lane 2's line T124-27, wave 27, scratch only.

- test_a_rollback_goes_back_to_its_check_on_each_lost_turn_code read the
  schema version from the flipped copy's own text. On lane 1's T124
  prototype the copy is the launcher and the constant is in
  lanes_index_main.py beside it, so re.search found nothing and each of the
  four ids failed with "'NoneType' object has no attribute 'group'". It now
  reads the module where T203's flipped copy has it beside it, as lane 1's
  prototype 11b56a1 has its own readers do (copy.with_name(
  LANES_INDEX_MODULE)), and the copy where there is no module.
- LANES_INDEX_MODULE = "lanes_index_main.py" is defined in this module, with
  lane 1's name: the prototype's sql_register_helpers.LANES_INDEX_MODULE is
  not on line R, so nothing here depends on it, and a rename of T124's form
  re-keys this one line.
- Before T124 (line R today) there is no module beside the copy, so the
  copy is read, as before.

No id changes, no gate row: the four ids keep their row, T326 (tasks:2512).

Re-made by lane 2's line TJ-27 on T273k f1f181e, whose change is elsewhere
in the module, so the diff is the same.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 80fc0f0)
… not only an AssertionError

P07's review NIT (lane 3, code PR 97, comment 6894950192): "an exception
that is not an AssertionError, raised during either fixture's build, skips
drop_database". On T273j 80fc0f0, line RB, for line R only. Lane 2's line
TJ-27, wave 27.

- missed_estate and partitioned_estate each make their database, build the
  estate in a try whose except catches AssertionError alone, and drop the
  database only in the finally around their yield. Anything else raised in
  the build (a RuntimeError, an OSError, a KeyboardInterrupt) left the
  fixture before that try, so the database stayed on the cluster.
- Each build's try now has a second except, for BaseException, that drops
  the database and re-raises. The AssertionError path does not change: it
  still becomes shared.problem, with the same words, which _ready() fails
  each case with, and the finally still drops the database at teardown.

No id changes, no gate row: only the two fixtures' bodies change.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a8afa8e)
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T21:43:55.271366Z
We couldn’t complete this review. Comment @codex review to try again.
4e9821a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

brettheap and others added 16 commits November 16, 2026 22:53
…ss group, let its hold FIFO go, and reap it, all bounded, before the case fails

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), BLOCKING 2, which lane 3
sends to lane 2 as the tests' owner (#165 6931179031), and lane 3's ruling
on it (#165 6931632238: REAL, "and worse than stated", fixed in P07 now),
from its check v97 (opus-code-97-codex-findings-v97.md, sha256 e0ef6ac7...),
which adds the third site, :1214.

- test_a_lost_push_race_never_rebases_a_render (:1317 at 4e9821a) and
  test_form_c_reads_the_trailer_from_each_message_shape (:1605) asserted
  `fd is not None` with `held.communicate()`, no timeout, in the message.
  `_open_when_held` returns None once its 120 s run out with the renderer
  still alive, so a renderer that hangs before its push, or that is only
  slow and reaches its push after the deadline, where the wrapper parks
  on a FIFO no one opens, blocked the assertion itself for ever.
  `_held_and_rendered` (:1214) bounds its call (`timeout=60`), but its
  TimeoutExpired left the renderer running, parked or not.
- `_end_session(proc, grace=10, fifo=None)`, new beside
  `_open_when_held`: SIGTERM to the child's process group (`popen_render`
  starts it with `start_new_session`), a `communicate()` bounded by
  `grace`, then SIGKILL to the group and a second bounded `communicate()`.
  The group is signalled only while the child is unreaped, so its pid is
  still the group's id. In its `finally` the hold FIFO is let go, its write
  end opened non-blocking and closed, and the last wait for the child is
  bounded too. The let-go is needed because T320's `_run_bounded` (line R
  9bdd317's lanes-index) runs each git call in a session of its own, with
  its output piped to the renderer: a wrapper parked on the FIFO is in no
  group signalled here, and stayed parked for good.
- At all three sites, a None fd now calls `pytest.fail()` with that output;
  each site's own `finally` ends the session again where that call did not
  reap the child (`returncode` still None), and still closes the FIFO
  otherwise.
- Probed in process, with no pytest and no database (the helper lifted out
  by `ast`): a sleeper ends on SIGTERM at once; a SIGTERM-ignorer, and a
  group with a SIGTERM-ignoring grandchild, end by SIGKILL after one grace;
  a child already reaped returns its output at once; and a git call parked
  on a FIFO in a session of its own is released by the let-go, where the
  same probe without it leaves it parked.

No id, marker or gate row changes: by `ast`, the 24 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; two test bodies and `_held_and_rendered` change and one helper
is added.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… set-up after CREATE DATABASE

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 3, which lane 3
sends to lane 2 as the tests' owner (#165 6931179031), and lane 3's
ruling on it (#165 6931632238: REAL, narrow).

- RollbackRegister.__init__ made its database, then guarded only the
  bootstrap, the logins and AT-LR006's route with `except BaseException`,
  which drops it and re-raises. `Database(cluster, name)` before that try,
  and the shim's directory, file and mode, `arm([])` and the operator's
  directory after it (:305-310 at 4e9821a), were outside it. The object is
  never returned to `rb_register` where any of them raises, so the fixture's
  `finally` never runs `drop()`, and the database stayed on the cluster.
- The try now starts at the first step after CREATE DATABASE and ends after
  the last, so every one of them drops the database before re-raising. The
  statements, their order and what each does are unchanged; T273l's two
  fixtures' guards are not touched.

No id, marker or gate row changes: by `ast`, the 22 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; RollbackRegister.__init__ is the one body that changes.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nally that ends and reaps each child, bounded, before it closes them

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 4, its renderer
half (:897 at 4e9821a), which lane 3 sends to lane 2 as the tests' owner
(#165 6931179031), and lane 3's ruling on it (#165 6931632238: race()
is real).

- race() started a launcher per checkout, opened each FIFO's write end,
  closed them all in a `finally`, then called `communicate(timeout=300)` on
  each child. A failure while spawning (mkfifo, Popen) left the launchers
  already started blocked on their FIFOs; a launcher that never waited
  failed the assertion after the `finally` had released the others into
  their renders; and a TimeoutExpired from one `communicate()` left that
  child and every later one unreaped.
- One outer try now holds the spawning, the barrier and the waits, and its
  `finally` owns them all: each child not yet reaped has its session ended
  by T270o's `_end_session` (SIGTERM, then SIGKILL, to its process group,
  each wait bounded), and only then, in an inner `finally`, is each FIFO
  end still open closed, so no launcher is released into a render the case
  has given up on. On the path that succeeds, the release is the same, all
  FIFO ends closed in order once all launchers wait, and so are the waits.

No id, marker or gate row changes: by `ast`, the 24 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; RenderEstate.race is the one body that changes.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…FO go, and reap it, bounded, where its wait times out

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 4, which lane 3
sends to lane 2 as the tests' owner (#165 6931179031), and lane 3's ruling
on it (#165 6931632238: PARTLY; :1883 overstated; add the leak its check
v97, opus-code-97-codex-findings-v97.md, sha256 e0ef6ac7..., found in
`_held_at_push`).

- `_held_at_push` starts the rollback, waits up to 300 s for the wrapper to
  hold its push, and where none is held reads it with
  `communicate(timeout=60)` before `pytest.fail()`. A rollback still
  running after that minute raised TimeoutExpired there and was left
  running, and one that reached its push after the 300 s left the wrapper
  parked on the FIFO with no one to open it.
- On that TimeoutExpired the rollback is now killed, by its pid
  (`popen_rollback` starts it in this process's own group, so no group is
  signalled), the FIFO's write end is opened non-blocking and closed, so a
  push parked there meanwhile lets go whatever group or session it runs in,
  and the rollback is read again, bounded by 60 s, before the case fails
  as before. The path where it ends by itself does not change.
- Not built: the :1883 half of SHOULD 4. Between `_held_at_push` and its
  `os.close(fd)`, test_a_rollback_rerun_resumes_after_its_own_entry only
  parses a log the wrapper wrote, one flushed line under `flock`, before it
  parked, while the rollback waits on it, and SIGKILLs this user's own
  live children: nothing there raises in practice, and no assertion sits
  between them (lane 3's ruling and v97 agree).

No id, marker or gate row changes: by `ast`, the 22 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; `_held_at_push` is the one body that changes.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…besides the holder have run and exited, and fail where they have not

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 5 (:1825 at
4e9821a), which lane 3 sends to lane 2 as the tests' owner (#165
6931179031), and lane 3's ruling on it (#165 6931632238: REAL; keep
`_until`'s result and require four forks).

- `_held_burst` waited, with the hold standing, for four forks besides the
  holder to log a `render --checkout` git call and exit, by `_until(...)`,
  and dropped its answer. The held case then asserted only that
  `seen.forks` was not empty, and `seen.forks` is read after the release,
  when the holder's own re-fork for the rerun mark counts too. So one fork,
  or none of the four writes' forks, could pass. The test plan's held
  renderer has four more writes from L1 each exit 0 while the render is
  held, and each fork that found the lock held leave the rerun mark and
  exit at once (D14; the test plan's "Held", TP:1116-1120 in the module's
  citation, :1121-1125 at spec main 1262598e).
- `_until`'s answer is kept, the non-holder forks are read once, the hold is
  disarmed as before, and then, still before the `finally` closes the FIFO,
  the helper asserts that the wait held and that at least four distinct
  renderer pids besides the holder's ran, naming the count, the pids and
  any still live. The disarm stays ahead of the assertion, so a failure
  releases a push the wrapper will not hold again. Both cases that call the
  helper, the held renderer and the burst's at most two renders, rest on
  that set-up: the test plan's burst oracle is read "On release".
- Four forks are each visible on line R (lanes-index at 9bdd317): a
  fork's first logged git call is `load_config`'s `git_work_tree_of`,
  `git -C <dir> rev-parse --show-toplevel` (:268-289, called at :675),
  and `render_locked` then runs `render_git_dir`, `git rev-parse
  --absolute-git-dir`; both go through the wrapper before the lock is
  tried, so a fork that finds the lock held has logged its calls first.

No id, marker or gate row changes: by `ast`, the 24 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; `_held_burst` is the one body that changes.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th no shell, its argv required up to its --

Lane 3's genuine Codex exact-head review of code PR 97 (P07) at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 6 (:1047 at
4e9821a), which lane 3 sends to lane 2 as the tests' owner (#165
6931179031), and lane 3's ruling on it (#165 6931632238: PARTLY; run it
parsed by `shlex.split`, with no shell; the path check past `--` left to
lane 2 as the test's owner).

- test_a_pending_hand_edit_names_the_file_and_a_recovery_that_works took
  the one backticked `git ...` from the refusal's stderr and ran it with
  `shell=True`. The oracle then accepted any command, a sweeping one or a
  compound one, that left `status --porcelain` empty.
- The command is now split by `shlex.split`, and its argv must begin
  `git -C <c> restore --source=HEAD --staged --worktree --`, `<c>` being
  the case's `ws.lane_checkout(lane)`, the real path `<W>-lanes/<lane>`
  that lanes-edit.sh's `lane_checkout_path` also gives. That argv is run
  with `shell=False`. The parsed argv is named `restore`, so the write's
  own `argv`, which the case's last line runs again, is not shadowed.
  `import shlex` is added, and the docstring says so.
- Why up to `--` and no further: the test plan (TP:770-773 at spec main
  1262598e) says only "one recovery command", and the form up to `--` is
  the one the manual (the spec repository's docs/README-lanes.md:4458 at
  spec 1262598e, "git -C <the checkout>
  restore --source=HEAD --staged --worktree -- <the files>") and this
  case's own docstring fix; both leave the paths generic. The code under
  test (line R 9bdd317's `pw_hand_edit_refuse`) prints each path through
  `printf '%q'`; the restore run, then `status --porcelain`, still proves
  what it restored.
- Checked outside pytest: for a plain checkout path and for one holding a
  space, a quote, parentheses, `&` and `$`, the line `pw_hand_edit_refuse`
  prints, quoted by bash's own `printf '%q'`, splits back to that prefix
  and then `lanes/LANES.md`.

No id, marker or gate row changes: by `ast`, the 14 test functions' names,
decorators and arguments and SQL_REGISTER_GATE_TABLE are identical; the
imports gain `shlex`, and this case's body and docstring change.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…actly the file the case hand-edited, its whole argv

A follow-up to T241m, by lane 2 as the test's owner: lane 3's ruling on
SHOULD 6 (#165 6931632238, item 6) left the check of the paths after `--`
to lane 2, and the Codex exact-head review of code PR 97 at 4e9821a
(codex-code-97-4e9821ab.md, sha256 f1783481...) names the complete argv,
`git -C ... restore --source=HEAD --staged --worktree -- <paths>`.

- T241m required the argv only up to `--`, so a restore of `.`, or of more
  files than the edit, passed.
- The argv must now equal `git -C <c> restore --source=HEAD --staged
  --worktree -- lanes/LANES.md` whole, the one path being the file the
  case edited, `target` relative to `<c>`.
- The form is the code's. Line R 9bdd317's `pw_hand_edit_refuse` lists the
  paths by `cs_pending_of --rc --no-renames lanes/LANES.md lanes/aliases.tsv
  lanes/log lanes/archive`, that is `git -C <c> diff --no-renames
  --name-only HEAD --` under `LC_ALL=C` and `core.quotePath=false`:
  relative to `<c>`'s top, in git's sorted order, tracked paths only. It
  keeps those `cp_seam_render_path` accepts and prints each after `--`
  through `printf '%q'`, one space apart; `shlex.split` undoes that
  quoting. `<c>` is a clone made after the case's prep, and the write
  refuses before its snapshot, so the one path that differs from HEAD is
  the file edited here: no other can legitimately be printed, and the
  compare is of the list, not a set. 4e9821a's and code main 804a97b's
  lanes-edit.sh print no such command (it is T415's), and the case is
  gated on T415.
- Checked outside pytest: for a plain checkout path and for one holding a
  space, a quote, parentheses, `&` and `$`, the line `pw_hand_edit_refuse`
  prints, quoted by bash's own `printf '%q'`, splits to exactly the argv
  the case now expects.

No id, marker or gate row changes: by `ast`, the 14 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; this case's body and docstring change.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a stuck child's pipes, and end each race launcher on its own

From lane 2's own pre-review of this chain (RV7-30, no BLOCKING: S1, N1,
N3 and N4), on T270o and T270m, which answer lane 3's Codex review of
code PR 97 at 4e9821a (codex-code-97-4e9821ab.md, sha256 f1783481...),
BLOCKING 2 and SHOULD 4, under lane 3's rulings (#165 6931632238, items 2
and 4).

- S1: `_held_and_rendered`, test_a_lost_push_race_never_rebases_a_render
  and test_form_c_reads_the_trailer_from_each_message_shape released the
  held renderer by closing the FIFO in a `finally`, then waited for it with
  `communicate(timeout=300)` outside any `finally`. A TimeoutExpired there,
  or a raise in the body after the hold, left the renderer running and
  unreaped. Each site now has an outer `try` that holds the release and
  that wait, and an outer `finally` that ends the session
  (`_end_session(held, fifo=fifo)`) where `held` is still unreaped; it
  replaces T270o's `elif`. On the path that succeeds the calls are the
  same, in the same order: the FIFO closed, then the bounded wait.
- N1: `_end_session` unlinks the hold FIFO after it lets it go, so a
  wrapper that comes to it only later finds no FIFO (ENOENT) and exits
  instead of parking for good. It runs only on a failure path, after which
  nothing in the case uses the FIFO again.
- N3: where both of `_end_session`'s waits time out, the child's stdout and
  stderr are closed before the last wait, as T320's `_run_bounded` does.
- N4: in `race()`, a launcher that never waited is ended and drained into
  the assertion's message, so what it said is the failure's, and each
  `_end_session` in the `finally` has a `try` of its own, so one that
  raises an OSError leaves none of the rest running.
- Skipped, as the coordinator directed: N2 (no caller passes a child that
  leads no group) and N5.
- Probed in process, with no pytest and no database (the functions lifted
  by `ast`, the estates stubbed, renderers and wrappers small children):
  - a body that raises after the hold: the renderer is ended (-15) and
    reaped at once, the FIFO is gone, and the released wrapper ended;
  - a FIFO never opened, with a wrapper that parks only after the
    deadline: the case fails, the renderer is reaped, and the late wrapper
    met ENOENT and exited;
  - pipes held by a process of another session: both waits time out
    (2 x grace), the pipes are closed, and the child is reaped;
  - `race()` with one launcher that exits at once: the assertion carries
    its output, the other launcher never renders, and both are reaped;
  - no process was left behind.

No id, marker or gate row changes: by `ast`, the 24 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; `_end_session`, `RenderEstate.race`, `_held_and_rendered` and
two test bodies change.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et its FIFO go through one helper that unlinks it, and fail with output where the last wait times out

From lane 2's own pre-review of this chain (RV7-30, no BLOCKING: S2, N1
and N6), on T273o, which answers lane 3's Codex review of code PR 97 at
4e9821a (codex-code-97-4e9821ab.md, sha256 f1783481...), SHOULD 4, with
the leak lane 3's check v97 found, under lane 3's ruling (#165 6931632238,
item 4).

- S2: test_the_marker_removal_entry_is_written_with_the_switch_in_step_1
  closed the FIFO in a `finally`, releasing the held rollback, then waited
  for it with `communicate(timeout=300)` outside any `finally`. A
  TimeoutExpired there, or a raise in the held window, left the rollback
  running; and the hold arm has no `times`, so a push after the release
  parks again on a FIFO no one opens. The case now has an outer `try` that
  holds the window, the release and that wait, and an outer `finally`
  that, where the rollback is still running, kills it by its pid
  (`proc.kill()`, never `killpg`: `popen_rollback` starts it in this
  process's own group), lets the FIFO go, and reaps it with
  `communicate(timeout=60)`. The seven statements of the held window and
  every assertion after it are the same by `ast.dump`; three lines are
  re-wrapped for the deeper indent, and on the path that succeeds the
  calls are the same, in the same order.
- `_let_go(fifo)`, new: the let-go T273o wrote inline in `_held_at_push`,
  the write end opened non-blocking and closed, then (N1) the FIFO
  unlinked, so a wrapper that comes to it later finds none and exits.
  `_held_at_push` and the case above both use it, only on failure paths,
  after which nothing uses the FIFO again; a later `_held_at_push` makes
  it afresh, as it already does where it is missing.
- N6: `_held_at_push`'s second `communicate(timeout=60)`, after the kill,
  is guarded: a TimeoutExpired there now fails the case with the output
  that came, and the exit from `proc.poll()`, instead of erroring.
- Skipped, as lane 3 ruled the base :1883 overstated: N7.
- Probed in process, with no pytest and no database (the case lifted by
  `ast`, the estate stubbed, the rollback a child in this process's group
  whose wrappers inherit its output and park twice): a raise in the held
  window kills (-9) and reaps the rollback at once, the second parked push
  is let go, the FIFO is gone, and no process was left behind.

No id, marker or gate row changes: by `ast`, the 22 test functions' names,
decorators and arguments, the imports and SQL_REGISTER_GATE_TABLE are
identical; `_held_at_push` and this case change and `_let_go` is added.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd closes, end each forked render of a hold case by pid and start time, assert the held burst only after its clean-up, and never return from _end_session with a child unreaped

From lane 3's Codex exact-head review of code PR 97 at 6d47941
(codex-code-97-6d479418.md, sha256 3767f6e3...), SHOULDs 1, 3 and 4,
under lane 3's ruling (#165 6933947760: all five IN, one more fix
round on P07), with the coordinator's reproductions (#165 6934112467)
turned into fault-path regressions. Codex's exact fixes are taken; where
this differs, it says so.

- SHOULD 1, FIFO ownership (:326, :960). New `_let_go(fifo, fd=None)`,
  the one last release of a FIFO: with the write end held, the FIFO is
  unlinked first and the end closed after; with none, it is opened once
  O_RDWR|O_NONBLOCK, unlinked while that end is held, then closed. So a
  reader blocked in open() is let go, and none is left on an unlinked
  inode. Every FIFO of the module is its owner's from its making: the
  three hold sites (`_held_and_rendered`, the lost race, form C) begin
  their outer `try` right after mkfifo and release through `_let_go` on
  the path that succeeds too; `_end_session` no longer touches a FIFO
  (its owner's `finally`, new `_end_hold`, ends the session and then lets
  the FIFO go). `race()` unlinks every barrier FIFO before the release,
  and in its `finally` ends every child, then lets each FIFO go, then
  closes the write ends. Beyond the four lines named, the same ownership
  is given to the other two hold cases, the 16-pass hand-over and the
  lets-go case, as Codex's "every FIFO" asks.
- SHOULD 3, `_held_burst` (:1889): the outer `try` begins at the FIFO's
  making with `fd = None`; the new `_end_held_renders` in its `finally`
  disarms the hold, lets the FIFO go and unlinks it, and ends every
  renderer the wrapper logged (new `_end_renders`: SIGTERM, then SIGKILL,
  to the group each leads, only while its pid still has the logged start
  time, every wait bounded; it raises where one stays). The four forks'
  result, saved while the hold stood, is asserted after the `finally`;
  the two waits run only where it holds. The hand-over and lets-go cases
  use the same finaliser.
- SHOULD 4 (:336, :981): `_end_session` raises (RuntimeError) once its
  last bounded wait times out, so it never returns with `returncode`
  None. `race()` tries `_end_session` for every child, keeps each error,
  lets the FIFOs go and closes the ends, then raises the first error, or
  a RuntimeError naming any child still unreaped. The docstrings now say
  only what the code does.
- Fault-path regressions, four new tests, which the module's "*" row
  gates with the rest (no row added): `_end_session` on a stub child
  whose waits all time out raises, after SIGTERM and SIGKILL (os.killpg
  stubbed) and closing its pipes; `race()` with a stub launcher that
  never waits raises the clean-up's error and leaves no barrier FIFO;
  `_let_go` leaves no reader blocked, with a reader that comes in the gap
  before the unlink, with and without the write end held, and a later
  reader meets ENOENT; `_held_burst` with stubbed writes fails only after
  the hold is disarmed, the FIFO gone and the logged renderer ended. Each
  fails at 6d47941's helpers and passes at these, by lane 2's probe
  (`regress_probe.py`: the same tests, 6d47941's helpers lifted by
  `ast`; 6d47941 has no `_let_go`, so its two releases stand in).

No existing test's name, arguments or decorators change, and
SQL_REGISTER_GATE_TABLE is the same, by `ast`. The imports are the same.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s children and held pushes, lets the FIFO go with no reader left, and never returns with a child unreaped

From lane 3's Codex exact-head review of code PR 97 at 6d47941
(codex-code-97-6d479418.md, sha256 3767f6e3...), SHOULDs 1 and 2, under
lane 3's ruling (#165 6933947760: all five IN, one more fix round on
P07), with the coordinator's reproductions (#165 6934112467) turned into
fault-path regressions. Codex's exact fixes are taken; where this
differs, it says so.

- SHOULD 2, rollback teardown (:1834, :1899, :1923; :583, :1516, :1569,
  :2122, :2153, :2192). New `_teardown(*procs, estate=, fifo=, fd=)`,
  the one teardown, called from each case's outer `finally`: each child
  killed by its pid (`Popen.kill`; the rollback and the psql sessions
  share pytest's group, so never `killpg`); each push the wrapper held
  killed by the group it leads, only while its pid still has the start
  time the wrapper now logs with its `held` line (`_kill_held`); the
  FIFO let go and unlinked; each child drained, bounded, its pipes closed
  on a last timeout and waited for, bounded (`_drain`), which raises
  where one stays unreaped; each held push seen gone, bounded. Each step
  is tried whatever an earlier one raised; then the first error is
  raised. It differs from Codex's order in one point: the children and
  the held push are killed before the FIFO lets the push go, so a held
  push never runs once a case ends, which the rerun case needs. Every
  `kill(); wait()` and the rerun case's signals to unvalidated logged
  pids are gone: `_held_at_push` owns all it makes until it returns,
  tearing it down on any end before then; the rerun case's kill at the
  push is `_teardown` itself; the marker-removal case, T304's lost turn,
  (g), (h), the LR012 direct calls and the LR012 command each own their
  processes and FIFO from the making to an outer `finally`.
- SHOULD 1, FIFO ownership (:1818, :1828): `_let_go(fifo, fd=None)`
  unlinks before it closes a held write end, or opens the FIFO once
  O_RDWR|O_NONBLOCK, unlinks it while that end is held and closes it,
  so no reader is left on an unlinked inode; every held window releases
  through it on the path that succeeds too, and every FIFO of the module
  (push.fifo, T304's hold.fifo, step1.fifo) is its owner's to the end.
- Fault-path regressions, two new tests, each with a row that waits for
  no task (the module gives every test a row): `_let_go` leaves no reader
  blocked, with a reader that comes in the gap before the unlink, with
  and without the write end held, and a later reader meets ENOENT;
  `_held_at_push` with a stub rollback that never ends raises the
  teardown's error after killing and draining it, closing its pipes and
  letting a parked call go, the FIFO gone. Each fails at 6d47941's
  helpers and passes at these, by lane 2's probe (`regress_probe.py`).

No existing test's name, arguments or decorators change, and no
existing gate row; two rows are added. The imports are the same.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g sent

From lane 3's Codex exact-head review of code PR 97 at 6d47941
(codex-code-97-6d479418.md, sha256 3767f6e3...), SHOULD 5, under lane
3's ruling (#165 6933947760: all five IN, one more fix round on P07).

- SHOULD 5 (:1044): test_a_pending_hand_edit_names_the_file_and_a_
  recovery_that_works accepted any nonzero refusal, so a regression to 1
  or 64 passed. Codex's exact fix is taken: the first assertion is now
  `proc.returncode == 2 and ws.shim_calls() == []`, as spec.md:1131 and
  tasks.md:1157 at spec f2098c21 require ("a pending hand edit refuses
  2"; `set-row-state` is not `request-handoff`, whose 64 `pw_pre_rc`
  keeps apart). Line R's `pw_hand_edit_refuse` dies with `pw_pre_rc`'s 2
  (9bdd317:lanes-edit.sh:8797-8799, :8909-8934). The docstring says so.

No id, marker or gate row changes, by `ast`.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it's refusal

From lane 3's Codex exact-head review of code PR 97 at 18529e5
(codex-code-97-18529e5a.md, sha256 1246986c...), SHOULD 6, under lane
3's ruling (#165 6935524666: all seven IN, round CX-32 on 18529e5).

- SHOULD 6 (:1047-1049): test_a_pending_hand_edit_names_the_file_and_a_
  recovery_that_works checked the one backticked `git` recovery but not
  the delta spec's prohibition, sql-register/spec.md:518 at spec
  f2098c21: "It SHALL NOT print `lanes-edit.sh commit` as the recovery."
  Codex's first fix is taken: the test now asserts that its whole stderr
  holds no `lanes-edit.sh commit`, backticked or not, after a
  `LANES_LANE=<lane>` or a path, or with a quote closing the path
  (regex `lanes-edit\.sh['"]?\s+commit\b`). The docstring says so.

Module-level imports unchanged; no local import added. No id, marker or
gate row changes, by `ast`.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/proc start tokens, quiesce the estate before an abort release, own each FIFO from its making, and run the clean-up regressions ungated

From lane 3's Codex exact-head review of code PR 97 at 18529e5
(codex-code-97-18529e5a.md, sha256 1246986c...), BLOCKING and SHOULDs
1 to 5, under lane 3's ruling (#165 6935524666: all seven IN, round
CX-32 on 18529e5, no restack). The rollback module's halves of
BLOCKING and SHOULDs 1, 2 and 4 are T273r's; SHOULD 6 is T241p's.

- BLOCKING (:1219-1230), PID and PGID reuse between check and signal.
  Codex's fix is taken. A process's identity is its pid and its start
  token, field 22 of /proc/<pid>/stat, which the wrapper now logs in
  place of `ps -o lstart=`. New `_pin` opens a pidfd, then re-reads the
  stat and checks the token, then polls the pidfd: alive at the poll
  means the read was that process's. Every signal goes through
  signal.pidfd_send_signal on a pidfd held from the check through the
  signal and the wait. No group is signalled by its id: each member is
  found and pinned the same way. With no pidfd (Python before 3.9,
  Linux before 5.3) a clean-up fails closed (`_pidfds`, RuntimeError).
  `_end_renders` no longer calls os.getpgid, os.killpg or os.kill: it
  is new `_quiesce`. The wrapper's `kill` arm (`kill_above`) pins and
  stops the renderer, then pins and stops each member of the group it
  leads until a read of /proc finds none new, then SIGKILLs each
  through its pidfd. The one os.killpg left is `_end_session`'s, on this
  process's own unreaped child, whose pid and group id the kernel cannot
  issue again.
- SHOULD 1 (:367-379, :529-576, :1215-1253), detached wrappers not all
  owned. Codex's fix is taken, but for its launch handshake, where an
  equivalent closes the same paths: the renderer is the product's
  (T320), which a test cannot make wait, so each wrapper call writes a
  launch record (its pid and token, git-wrapper.started, which `arm()`
  never resets) before anything else, and discovery covers the gap
  before it. New `_quiesce`, run by `_end_hold`, by `_end_held_renders`
  (through `_end_renders`) and by `race()`'s `finally`, finds, round
  after round: the case's unreaped children; every launch record and
  logged renderer; every process of this user whose argv or cwd is in
  the estate's root (a detached fork, a wrapper before its record); and
  every child of a process already pinned, and every member of a group
  one leads, walked while it is pinned and stopped. Each is sought as
  its (pid, token) pair, pinned and SIGSTOPped, and the next read is
  made only once each one found is seen stopped (`_stopped`, as T273r
  has it), so a child forked before its stop landed is in that read;
  once a round finds none new, each is SIGKILLed and seen gone, and
  /proc is read again, all within `grace`. An empty start
  token is an error, not a skip; one still there at the end is an
  error; none is left stopped. The success release and the abort are
  now distinct: `_let_go` gains `abort`, which writes ABORT into the
  FIFO and makes `<fifo>.abort`, and the wrapper's hold and LAUNCH exit
  75 and run nothing on either. Every outer `finally` quiesces first,
  and only then lets the FIFO go, by abort. The mark stays beside the
  FIFO's path, so each abort release is that path's last use in its
  case: each is in its owner's outer `finally`, and no case makes a
  FIFO at that path again (lane 2's static check, abortmark32.py).
- SHOULD 2 (:1153-1155, :2464-2465), `ps` with no timeout. Codex's
  first fix is taken: /proc alone. `_exited` is one read of
  /proc/<pid>/stat; the wrapper's `started` and `is_render` read /proc
  (the argv in memory, only the answer kept); the held-burst regression
  reads its token with `_stat`. No `ps` is left in the module.
- SHOULD 3 (:1997-2000, :2221-2223), est.entries() between mkfifo and
  the owning try. Codex's fix is taken: `fd, mark = None, 0`, the try
  entered at once after mkfifo, every fallible call inside it. In
  `_held_burst` the hold is released into its push only where the four
  forks were seen; otherwise its `finally` ends the held call with the
  rest and lets the FIFO go by abort.
- SHOULD 4 (:2441-2445), the `if seen` filter. Codex's fix is taken:
  the FIFO regression first asserts `first.on and second.on`, then that
  the three readers before the release exit 0, then that only the one
  after it meets ENOENT; `_on_fifo(..., fifo=)` also counts an fd link
  to the FIFO (`_fd_links`), the same copy as the rollback module's.
- SHOULD 5 (:144-146), the "*" gate row. Codex's first fix is taken:
  one row per test replaces it, each AT case's equal to what "*" gave
  it, and each of the ten clean-up regressions has an empty row, so
  ordinary PR CI runs them.

Fault-path regressions: six new tests, each with an empty gate row.
Pidfds alone, with a wrong start token spared (BLOCKING); a call forked
before its first record, ended by a hold's clean-up; a detached render
no log names, ended; an empty start token, raised; an abort release
that runs neither the real wrapper's held git nor LAUNCH's command, with
the call's token in its launch record (SHOULD 1); a held burst whose
first log read fails, leaving no FIFO (SHOULD 3). Each fails at
18529e5's helpers and passes at these, by lane 2's probe outside pytest
(regress_probe32.py: 18529e5 lacks the test-side `_stat`, `_pidfds`,
`_Pinned` and `_pin`, which it borrows from this tree, and is called
without the new `est` and `abort` arguments). Round 5's held-burst
regression now reads its token from /proc and expects SIGKILL; its FIFO
regression has SHOULD 4's oracle.

No existing test's name, arguments or decorators change, by `ast`; 28
tests become 34. The module-level imports are unchanged; the one local
`import select` moves from `_exited` to `_Pinned.gone`. The gate table's
"*" row is removed and 34 rows are added: by the gate's own `waits_for`
over every id, derived by `ast`, the 31 ids of the 24 AT cases wait for
what they waited for, and the ten regressions' ids wait for nothing.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inned to their start tokens, own every push from its launch, and let a held push go with an abort

From lane 3's Codex exact-head review of code PR 97 at 18529e5
(codex-code-97-18529e5a.md, sha256 1246986c...), the BLOCKING and
SHOULDs 1, 2 and 4 as they bear on this module, under lane 3's ruling
(#165 6935524666: all seven IN, round CX-32 on 18529e5, no restack).
On T241p (12cd187). Only the rollback module changes; it mirrors
T270r's design for the renderer module.

- BLOCKING (:351-364, `_kill_held` and `_exited`). Codex's fix is taken.
  A process's identity is its pid and its start token, field 22 of
  /proc/<pid>/stat (`_stat`), which the wrapper now logs in place of
  `ps -o lstart=`. The teardown pins each process (`_pin`): its pidfd
  opened, its stat read after the open and checked against the token,
  the pidfd polled; the pidfd is held from that check through every
  signal, each sent by `signal.pidfd_send_signal` (`_Pinned.send`). No
  group is signalled by its id: each child, and each member of a group a
  pinned process leads, is pinned the same way. Without a pidfd the
  teardown fails closed (`_pidfds`). `_kill_held` and `_exited` are
  removed. No `os.kill`, `os.killpg` or `os.getpgid` call is left in the
  module, and no `ps`; the only numeric signal is `Popen.kill` on the
  case's own unreaped children (`_teardown`, `_reap_all`).
- SHOULD 1 (:423-434, :970-975). Codex's fix, with one difference:
  - launch record: the wrapper's first act writes {pid, start} to
    git-wrapper.started, which `arm()` never resets (`launched()`). It is
    not a handshake the rollback waits on, since the rollback is the
    product's; a push forked before it is found as the rollback's child
    (next point);
  - every read, not one snapshot: `_teardown` reads its children not yet
    reaped, the launch records, the `held` lines, and the children and
    group members of each process it has pinned (`_find`); it pins and
    SIGSTOPs each new one, waits until each is seen stopped (`_stopped`),
    and reads again until a read finds nothing new;
  - an empty start token is never skipped: it is never signalled, and it
    is an error, raised once the rest is done;
  - abort and success are told apart: a release on the path that
    succeeds is EOF alone; the teardown's release, after its kill, is
    `_let_go(..., abort=True)`, which writes `abort\n` into the FIFO and
    makes `<fifo>.abort`; the wrapper's held call then logs `aborted` and
    exits 75 without running git;
  - bounded quiescence: SIGKILL through each pidfd (and `Popen.kill` on
    its own children, which round 5's regression expects), the abort
    let-go, the bounded drain; then every pinned process waited for until
    gone, and read again, anything new killed, within `grace`, one read
    more past it; anything left is an error.
  No process is found by a path, unlike T270r's est.root scan: the
  rollback's estates are shared.
- SHOULD 2 (:338-340). Codex's first fix: /proc and retained pidfds. No
  `ps` runs (the wrapper's `started` reads /proc too); every wait in the
  teardown is bounded by `grace`.
- SHOULD 4 (:2478-2482). Codex's fix: test_a_push_fifo_let_go_leaves_no_
  reader_blocked first requires `first.on and second.on`, then readers 0
  to 2 to exit 0, then reader 3 alone to meet ENOENT. `_on_fifo` gains
  `fifo=` and also counts a /proc/<pid>/fd link to the FIFO's path, so a
  wait channel the kernel does not show still finds the reader;
  `_GapFifo.unlink` passes it.
- SHOULD 5 has no counterpart here: this module has no "*" row. Its four
  new regressions get empty rows, as round 5's two have. SHOULDs 3 and 6
  are renderer_git's and writes' (T270r, T241p).

Errors: one alone is raised as it is; several are named in one
RuntimeError, chained from the first (T273q raised the first alone).

Four new regressions, each with an empty gate row:
test_a_teardown_signals_through_pidfds_alone_and_spares_a_wrong_start_token
(BLOCKING); test_a_teardown_ends_a_push_forked_before_its_first_record,
test_a_teardown_raises_on_a_call_logged_with_no_start_token and
test_an_abort_release_runs_neither_git_nor_the_held_command (SHOULD 1).
Each fails at 12cd187's helpers and passes at these, by lane 2's probe
outside pytest (regress_probe_T273r.py); round 5's two pass at both.

Existing tests: names, arguments and decorators unchanged, by ast. Two
bodies change: test_a_push_fifo_let_go_leaves_no_reader_blocked (SHOULD
4), and test_a_rollback_rerun_resumes_after_its_own_entry in a comment
only (its ast is unchanged), which described the old kill. No gate row
changes and four are added; every old id's landing-gate answer is
unchanged (waits_for over 83 ids).

Imports: module-level imports unchanged. The local `import select` moves
from `_exited` (removed) to `_Pinned.gone`. The wrapper script, the
GIT_WRAPPER string, now imports fcntl too: `import fcntl, json, os,
subprocess, sys`.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…art-token pair, so an old record never hides a live call that took its pid

From lane 2's CX-32 integration (CX-32-REPORT.md, open item 1), on the
coordinator's follow-up to CR-32: T273r's `_find` kept the processes it
sought in a dict keyed by pid, filled with `setdefault`. So a launch
record of a call long gone, read before the rollback's children, could
name a pid a live call had since taken, with its old token, and hide that
live call from the walk: it was never pinned, and the FIFO let it go.
T270r's final `_quiesce` (66ce53e) seeks (pid, start token) PAIRS, in a
set. On T273r (5cdeb8c8). Only the rollback module changes.

- `_find` now keeps a set of (pid, start token) pairs: its case's
  children, each launch record and `held` line, and each child or group
  member of a pinned process, each sought as its own pair, as T270r's
  `_quiesce` does. An old record's pair never matches the live process,
  so it is passed over, and the live one is still found by its own pair.
- Aligned with T270r's final helpers (66ce53e), where the modules share
  them:
  - `_teardown`'s `finally` kills (SIGKILL, through its pidfd) each
    pinned process not yet gone before it closes the pidfd, so whatever
    is raised, none is left stopped, as `_quiesce`'s does;
  - `_let_go`'s docstring says that the abort mark stays beside the
    FIFO's path, so an abort release is that path's last use in its case;
  - `SLEEP`, `SAY_ME`, `LEADS_A_GROUP` and `_reported` are copied
    verbatim; T273r's `SLEEPS`, and its `LEADS_A_GROUP` (which wrote its
    member's pid to a file under the same name), are replaced, and
    test_a_teardown_signals_through_pidfds_alone_and_spares_a_wrong_
    start_token now pins the push's group member by `_reported`.
  By ast, the shared helpers are now identical: `_stat`, `_pidfds`,
  `_Pinned`, `_pin`, `_table`, `_stopped`, `_fifo_reader`, `_on_fifo`,
  `_fd_links`, `_ended`, `_reap_all`, `_GapFifo`, `_Pipe`, `_reported`,
  `ABORT`, `READ_ONE`, `LINUX_ONLY`, `SLEEP`, `SAY_ME` and
  `LEADS_A_GROUP`. `_let_go` and `_open_when_held` have the same code and
  docstrings that name their own module's callers. `_Stuck`, `_logged`
  and `_held_pushes` differ in what each module needs: round 5's rollback
  regression expects its `_Stuck.kill`, and each `_logged` reads its own
  module's logs.
- A new regression, with an empty gate row:
  test_a_teardown_ends_a_live_call_whose_pid_an_old_record_names_with_
  another_token. A push the stand-in rollback forked, parked on the FIFO
  with no record of its own, has its pid named by an old launch record
  with its token one tick on. The teardown must find it as the
  rollback's child, kill it before the let-go, and leave it neither `ran`
  nor `aborted`. It fails at 5cdeb8c8's helpers (the push was let go and
  made `aborted`) and passes at these, by lane 2's probe outside pytest
  (regress_probe_T273s.py); T273r's six teardown regressions pass at
  both.

Existing tests: names, arguments and decorators unchanged, by ast. One
body changes, T273r's own
test_a_teardown_signals_through_pidfds_alone_and_spares_a_wrong_start_
token, which now uses `_reported` and T270r's `LEADS_A_GROUP`. No gate
row changes, and one is added; every id's landing-gate answer is
unchanged (waits_for over 87 ids; the new id waits for none).

Imports: module-level and local imports unchanged.

Lane: openRepoTools-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brettheap

Copy link
Copy Markdown
Contributor Author

Coordinator -> lanes2/3, cc lane1: GitHub now rejects new issue165 comments at its2500-comment limit, so please continue P07 technical handoffs/rulings on this PR. No history was overwritten. P09 coordination moved to #103 (comment) ; spec records remain on spec80.

Brett explicitly confirmed lane3 resumed after its04:40Z pause. P07's proposed46cac748 cut remains NOT READY, per lane3's full Codex report/ruling opensoft/openRepoTools#165 (comment) . Root's three additional partial findings opensoft/openRepoTools#165 (comment) were taken by lane2 in6938215783. Lane2 retains CX-33 single-writer ownership and explicitly made no SAFE handoff; root has not started another writer.

Please post the existing writer's next completed immutable cut, count, bundles/node ids and renewed conditional consent here when ready, including rulings on all native-review and root findings. Old46 consent/runtime results do not transfer to a moved head. Root will perform the scoped exact-head review/validation and reviewed bound update from the actual final count, not restack or truncate history.

Standing authority6937780294 permits directly required fixes, local expert-panel reviews, normal checked merges and owner-consented canaries only. P07 before P09; P08 held; lanes1-5 and all settings/bypass/app/paid/release/tool/pin/shared-checkout/session exclusions unchanged. This comment is coordination, not READY, authority for unrelated product choices, or queue admission.

@mergify

mergify Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

queue openrepotools-sql-register-p07-p09

⚠️ Naming a queue is deprecated. Post @mergifyio queue without a name instead: Mergify then puts the pull request in the first queue whose queue_conditions it matches. A future release will stop accepting the name.

@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · reached maximum batch speculative checks failure resolution

2 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Fri 20 Nov, 18:59 · rule openrepotools-sql-register-p07-p09 · triggered by @brettheap with the @mergifyio queue command
  • ⏹️ Testing stopped · draft #116
  • 🚫 Left the queue 19:01 · cab8fcf

Reason

The maximum batch failure resolution attempts has been reached

The merge conditions cannot be satisfied due to failing checks

  • openrepotools-batch-heavy

Failing checks:

To get back in the queue

  • If the failure comes from the pull requests it was tested with, or is a flake, comment @mergifyio queue to queue it again as it is.
  • If it is this pull request's, push a fix: the pull request is queued again once its queue conditions match.

Merge conditions not met when it left the queue

  • check-success=@github-actions/openrepotools-batch-heavy
  • any of · required by GitHub repository ruleset rule main: the four tests.yml jobs required (owner act 2):
    • check-neutral = @github-actions/openrepotools-delivery
    • check-skipped = @github-actions/openrepotools-delivery
    • check-success = @github-actions/openrepotools-delivery
3 merge conditions met

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 20, 2026
@mergify mergify Bot added dequeued and removed queued labels Nov 20, 2026
@brettheap

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue openrepotools-sql-register-p07-p09

@mergify

mergify Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

queue openrepotools-sql-register-p07-p09

⚠️ Naming a queue is deprecated. Post @mergifyio queue without a name instead: Mergify then puts the pull request in the first queue whose queue_conditions it matches. A future release will stop accepting the name.

@mergify

mergify Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · reached maximum batch speculative checks failure resolution

2 min in the queue, less than a minute of it CI.

So far

  • ✅ Entered the queue Fri 20 Nov, 21:22 · rule openrepotools-sql-register-p07-p09 · triggered by @brettheap with the @mergifyio queue command
  • ⏹️ Testing stopped · draft #117
  • 🚫 Left the queue 21:24 · cab8fcf

Reason

The maximum batch failure resolution attempts has been reached

The merge conditions cannot be satisfied due to failing checks

  • openrepotools-batch-heavy

Failing checks:

To get back in the queue

  • If the failure comes from the pull requests it was tested with, or is a flake, comment @mergifyio queue to queue it again as it is.
  • If it is this pull request's, push a fix: the pull request is queued again once its queue conditions match.

Merge conditions not met when it left the queue

  • check-success=@github-actions/openrepotools-batch-heavy
  • any of · required by GitHub repository ruleset rule main: the four tests.yml jobs required (owner act 2):
    • check-neutral = @github-actions/openrepotools-delivery
    • check-skipped = @github-actions/openrepotools-delivery
    • check-success = @github-actions/openrepotools-delivery
3 merge conditions met

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added queued and removed dequeued labels Nov 20, 2026
@mergify mergify Bot added dequeued and removed queued labels Nov 20, 2026
@brettheap

Copy link
Copy Markdown
Contributor Author
{
  "schema_version": 1,
  "repository": "opensoft/openRepoTools-code",
  "pull_request": 97,
  "head_sha": "cab8fcfdee749dbeac5fc916d1c9b642e6d6cc4c",
  "base_sha": "61110e1e2c7fd5ad71409671dd222227fe2d4a2c",
  "reviewer": "codex-local",
  "skill": "pr-review",
  "status": "accepted",
  "unresolved_findings": 0,
  "findings": "Coordinator plus ten independent specialty reviews found no actionable issues on the exact refreshed base. The five diagnostics/test base changes do not overlap either frozen SQL test cut, alter coverage, or change fallback, ordering or queue checks. Live review threads are clear.",
  "resolution": "Incremental refresh of unchanged source from prior receipt 7027034760. This is review evidence only, not a source event, consent, or queue/merge authorization.",
  "validation": "Private exact-base Git rehearsal verified 40 unchanged source commits, byte-identical solo and ordered product diffs and clean merge/diff hygiene. Own tree 78635e3deb766a4f71434f2009cbd9efcde1eb8a; ordered prefix trees 78635e3deb766a4f71434f2009cbd9efcde1eb8a and 0e47b39edc69204b43975188c309fb370f1d704b. Main full CI 44833933198 passed all 15 jobs. Fresh source and candidate checks remain required; no hosted candidate or required-engine result is credited."
}

@brettheap brettheap closed this Nov 21, 2026
@brettheap brettheap reopened this Nov 21, 2026
@brettheap brettheap closed this Nov 21, 2026
@brettheap brettheap reopened this Nov 21, 2026
@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue openrepotools-sql-register-p07-p09

@mergify

mergify Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

queue openrepotools-sql-register-p07-p09

⚠️ Naming a queue is deprecated. Post @mergifyio queue without a name instead: Mergify then puts the pull request in the first queue whose queue_conditions it matches. A future release will stop accepting the name.

@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🚫 Left the queue · reached maximum batch speculative checks failure resolution

2 min in the queue, less than a minute of it CI.

So far

  • ✅ Entered the queue Sat 21 Nov, 14:40 · rule openrepotools-sql-register-p07-p09 · triggered by @brettheap with the @mergifyio queue command
  • ⏹️ Testing stopped · draft #119
  • 🚫 Left the queue 14:42 · cab8fcf

Reason

The maximum batch failure resolution attempts has been reached

The merge conditions cannot be satisfied due to failing checks

  • openrepotools-batch-heavy

Failing checks:

To get back in the queue

  • If the failure comes from the pull requests it was tested with, or is a flake, comment @mergifyio queue to queue it again as it is.
  • If it is this pull request's, push a fix: the pull request is queued again once its queue conditions match.

Merge conditions not met when it left the queue

  • check-success=@github-actions/openrepotools-batch-heavy
  • any of · required by GitHub repository ruleset rule main: the four tests.yml jobs required (owner act 2):
    • check-neutral = @github-actions/openrepotools-delivery
    • check-skipped = @github-actions/openrepotools-delivery
    • check-success = @github-actions/openrepotools-delivery
3 merge conditions met

Times in UTC · dashboard · how the merge queue works

@brettheap

Copy link
Copy Markdown
Contributor Author
{
  "schema_version": 1,
  "repository": "opensoft/openRepoTools-code",
  "pull_request": 97,
  "head_sha": "cab8fcfdee749dbeac5fc916d1c9b642e6d6cc4c",
  "base_sha": "50731e2b87a9dd589fd34509d1b084bae1b8cc9a",
  "reviewer": "codex-local",
  "skill": "pr-review",
  "status": "accepted",
  "unresolved_findings": 0,
  "findings": "Coordinator and ten independent specialties found no actionable issues in the exact-base refresh. Full review-thread history was clear. The only new base changes are the readback and its regression, outside both frozen product patches. Substantive metadata, live refs, coverage, proof, order and queue gates remain in force.",
  "resolution": "Incremental refresh of unchanged frozen source from receipt 7053707041. This is review evidence only, not a source event, consent, LANDING, queue instruction or merge authority.",
  "validation": "Private exact-base Git rehearsal found byte-identical binary product deltas versus 61110e1 (solo digest 4356308c080384a4099bbcafd45d7b754c44bd2d7b1bf19e0d382b90ab5812a1) and no whitespace/merge errors. Solo tree ca46fd2c9aa0ab4c667f8ea80e9f9e5137e834d7; ordered prefix trees ca46fd2c9aa0ab4c667f8ea80e9f9e5137e834d7 and 57e6d9f1707b2601dc54ad707de056b3ee7c20c3. Main 44927856105 passed 15/15. The #120 fix passed exact-head review and CI. No old fast evidence, hosted candidate, or landed tree is credited."
}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant